{% extends "base.html" %}

{% block title %}Password reset confirmation{% endblock %}
{% block heading %}Password reset confirmation{% endblock %}

{% block body %}

{% if validlink %}
<p>Your username, in case you've forgotten: {{ form.user.get_username }}</p>
<p>Please enter your new password twice so we can verify you typed it in
correctly</p>

<form method="post">
{% csrf_token %}

<table class="form passwordform">

{% if form.errors %}
 <tr>
  <td colspan="2" class="error">Please correct the errors below.</p>
 </tr>
{% endif %}


{% for field in form %}
  <tr>
   <td>{{ field.label_tag }}</td>
   <td>
    {{ field.errors }}
    {{ field }}
{% if field.help_text %}
    <div class="help_text"/>{{ field.help_text }}</div>
{% endif %}
   </td>
  </tr>
{% endfor %}

 <tr>
  <td colspan="2">
   <input type="submit" value="Set my password" class="default" />
  </td>
 </tr>

</table>

</form>
{% else %}
<p>The password reset link was invalid, possibly because it has already
been used.  Please request a new password reset.</p>
{% endif %}
{% endblock %}
